#include "powermanager.h"
#include "qterminal.h"

bool PowerManager::restart()
{
    bool ret = true;
    QTerminal terminal;
    ret = ret && terminal.run("shutdown -r now");
    return ret;
}

bool PowerManager::shutdown()
{
    bool ret = true;
    QTerminal terminal;
    ret = ret && terminal.run("shutdown -h now");
    return ret;
}
